cnt=app.cnts[1]
bbox = cv2.boundingRect(cnt)
(x, y, w, h)=bbox
img = cv2.rectangle(mainw.cur_img, (x, y), (x + w, y + h), (255, 0, 0), thickness=2)
mainw.show_image(img)